#ifndef __MANAGER_H__
#define __MANAGER_H__

#include <string>
#include <vector>
#include "MyThread.h"

using namespace std;

struct AppConfig
{
	string	strName;
	string	strPath;
	string	strParam;
};

class CManager : public CMyThread
{
public:
	CManager(void);
	~CManager(void);

	bool Start(void);
	void Stop(void);

protected:
	virtual void ThreadProcMain(void);

private:
	bool IsProcessActive(const char *processName, const char *processPath);
	bool LaunchProcess(string processName, string processPath, string args);
	bool TerminateProcess(string processName);

private:
	bool					m_bExit;
	vector<AppConfig>		m_vecApp;
};

#endif
